# Copyright (C) <yyyy> <name of author>
#
# This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

# Begin /etc/pam.d/login

#auth        requisite      pam_securetty.so
auth        requisite      pam_nologin.so
auth        required       pam_env.so
auth        required      pam_pme.so
auth        required       pam_unix.so
auth        required       pam_tally2.so file=/dev/shm/tallylog deny=5 onerr=fail unlock_time=300 even_deny_root_account root_unlock_time=300
account     required       pam_access.so
account     required       pam_unix.so
# pam_selinux.so close should be the first session rule
session     required       pam_selinux.so close
session     required       pam_motd.so
session     required       pam_limits.so
session     optional       pam_lastlog.so
# pam_selinux.so open should only be followed by sessions 
# to be executed in the user context 
session     required       pam_selinux.so open
session     required       pam_unix.so

# End /etc/pam.d/login
